<template>
  <div class="Carousel">
    <swiper :options="swiperOption" ref="mySwiper">
      <!-- slides -->
      <swiper-slide>
        <img class="pic imgs" src="https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/banner1.png" />
      </swiper-slide>
      <swiper-slide>
        <img class="pic imgs" src="https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/banner-mate40.png" />
      </swiper-slide>
      <swiper-slide>
        <img class="pic imgs" src="https://newbee-mall.oss-cn-beijing.aliyuncs.com/images/banner2.png" />
      </swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
import { swiper, swiperSlide } from 'vue-awesome-swiper'
export default {
  name: 'Carousel',
  data () {
    return {
      swiperOption: {
        autoplay: 3000,
        loop: true,
        pagination: '.swiper-pagination'
      }
    }
  },
  components: {
    swiper,
    swiperSlide
  }
}
</script>

<style lang="less" scoped>
.Carousel{
  width: 100%;

  .imgs{
     width: 100%;
  }
}
</style>
